<template>
  <div class="about">
    <van-nav-bar :title="alertext" safe-area-inset-top	@click-left="onClickLeft" left-text="返回" fixed="'true" placeholder left-arrow />
  </div>
  <About msg="Welcome to Your Vue.js App"/>
</template>
<script>
  import About from '@/components/About.vue'
  // 1. 引入你需要的组件
  import {NavBar ,Icon } from 'vant';
  // 2. 引入组件样式
  import 'vant/lib/index.css';
  export default {
    setup() {
      const onClickLeft = () => history.back();
      return {
        onClickLeft,
      };
    },
    data(){
      return{
        alertext:''
      }
    },
    components: {
      About,
      [NavBar.name]: NavBar,
      [Icon.name]: Icon,
    },
    mounted() {
      this.alertext = sessionStorage.getItem('alertext')
      console.log(this.alertext)
    }
  }
</script>
